home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Corrida / PMGRacing.swf / scripts / DefineButton2_240 / BUTTONCONDACTION on(press).as next >
Encoding:
Text File  |  2001-07-07  |  657 b   |  33 lines

  1. on(press){
  2.    stopDrag();
  3.    tellTarget("/obstacle trigger")
  4.    {
  5.       stop();
  6.       tellTarget("/millisec")
  7.       {
  8.          stop();
  9.          tellTarget("/timer")
  10.          {
  11.             stop();
  12.             tellTarget("/start_lights")
  13.             {
  14.                stop();
  15.             }
  16.             x = "0";
  17.             while(x < "25")
  18.             {
  19.                if(eval("/:ob" add x) eq "1")
  20.                {
  21.                   tellTarget("/ob" add x)
  22.                   {
  23.                      stop();
  24.                   }
  25.                }
  26.                x += "1";
  27.             }
  28.             stop();
  29.          }
  30.       }
  31.    }
  32. }
  33.